package wangtiles;

public enum SideValues {
	zero(0),moinsUn(-1),moinsDeux(-2),un(1),deux(2),zeroPrime(0),unDemi(0.5);
	private final double valeur; 
	private SideValues(double v){
		this.valeur=v;
	}
	public double getValue(){return this.valeur; }
	
	public static SideValues getSideValues(double u){
		for(SideValues s:SideValues.values())
			if(s.getValue()==u) return s; 
		return null; 
	}

}
